package practice.Day10;

import java.util.Scanner;

/**
 * @Author quan
 * @Description 密码等级
 * @Date 2023/5/17 19:46
 */
public class a02_PasswordLevel {
    // 简单：就是不停的判断条件。问题是80%通过
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        //定义分数变量
        int num = 0;
        int score1 = 0;
        //1、判断长度
        if(str.length() <=4){
            score1= 5;
        } else if (str.length()<=7) {
            score1 = 10;
        }else {
            score1 = 25;
        }
//        //2、判断字母
        int score2;
        int count1 = 0;
        int count2 = 0;
        int count3 = 0;
        for (int i = 0; i < str.length(); i++) {
            char c = str.charAt(i);
            if(c <= 48 || c >=57){
                count1++;
            }
            if (c >=65 && c <=90) {
                count2++;
            }
            if (c >=97 && c <=122) {
                count3 ++;
            }
        }
        if(count1 == 0){
            score2 = 0;
        }else if (count2 == str.length() || count3 == str.length()) {
            score2 = 10;
            num++;
        }else{
            score2 = 20;
            num++;
        }

        //3、判断是否有数字
        int count_Num = 0;
        int score3;
        for (int i = 0; i < str.length();i++){
            if(str.charAt(i) >=48 && str.charAt(i) <=57){
                count_Num++;
            }
        }
        if(count_Num == 0){
            score3 = 0;
        } else if (count_Num == 1) {
            score3 = 10;
            num++;
        }else{
            score3 = 20;
            num++;
        }
        //4、判断是否含有符号
        int char_Count = 0;
        int score4;
        for (int i = 0; i < str.length();i++){
            char c = str.charAt(i);
            if((c >=0x21 && c <=0x2F) || (c >=0x3A && c <=0x40)|| (c >=0x5B && c <=0x60) || (c >=0x7B && c <=0x7E)){
                char_Count++;
            }
        }
        if(char_Count == 0){
            score4 = 0;
        } else if (char_Count == 1) {
            score4 = 10;
        }else{
            score4 = 25;
        }
        // 5、判断奖励
        int score5;
        if(num == 1){
            score5 = 2;
        } else if (num == 2) {
            score5 = 3;
        } else{
            score5 = 5;
        }
        //输出
        int res = score1+score2+score3+score4+score5;
        if(res >90){
            System.out.println("VERY_SECURE");
        } else if (res >=80) {
            System.out.println("SECURE");
        } else if (res >=70) {
            System.out.println("VERY_STRONG");
        } else if (res >=60) {
            System.out.println("SECURE");
        } else if (res >=50) {
            System.out.println("STRONGER");
        } else if (res >=25) {
            System.out.println("WEAK");
        } else {
            System.out.println("VERY_WEAK");
        }
    }
}
